package com.ezgo.erc.mq.service;

import java.io.Serializable;
import java.util.Map;
import java.util.stream.Stream;

import javax.jms.Destination;
import javax.jms.JMSException;

public interface BaseMqService {

	public void sendMessage(Destination destination, final String message) throws JMSException;

	public void sendMessage(Destination destination, final Byte[] bytes) throws JMSException;

	public void sendMessage(Destination destination, final Map<?, ?> map) throws JMSException;

	public void sendMessage(Destination destination, final Serializable obj) throws JMSException;

	public void sendMessage(Destination destination, final Stream<?> stream) throws JMSException;

}
